-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32 : Add default deep sleep latency of 3ms #8798
Conversation
Q: 2s or 2ms? Reading the code , I believe it is |
b62333b
to
2fa17c1
Compare
Update done 😕 |
@jeromecoutant How did you make your measurements? I'd like to repeat your tests on my STM32L442. :-) |
I set a GPIO to 1 at STOP mode exit and |
Pretty simple! I can give that a go. :-) |
@jeromecoutant The STM32L442 appears to be practically the same as the L476. I measured 2.25 ms but assume the extra 0.2 ms is not a surprise or a concern. :-) |
@mattbrown015 interesting anyhow :-) |
2fa17c1
to
3b77fb0
Compare
@jeromecoutant maybe change the PR title to 3ms before it gets merged ? |
CI started |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Description
Feature has been introduced in #8223
Discussion on ST impacts started there: #8223 (comment)
@c1728p9 @LMESTM
Here is some quick measurement between the end of deep sleep (CPU) and the end of hal_deepsleep function:
So we propose to set as default value a deep sleep latency of 2ms.
Value can be overwritten in your target anyway:
"overrides": { "deep-sleep-latency": 5 },
or "overrides": { "deep-sleep-latency": 0 },
Pull request type